package com.jprocms.module.cms.controller.admin.content.vo;


import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.util.Collections;
import java.util.Date;
import java.util.List;

@Schema(description = "管理后台 - 内容 Response VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class ContentRespVO extends ContentBaseVO {

    @Schema(description = "ID", required = true)
    private Long id;

    @Schema(description = "创建时间", required = true)
    private Date createTime;

    @Schema(description = "原文")
    private ContentOriginVo originContent;

    @Schema(description = "是否可编辑")
    public boolean editable;

    @Schema(description = "已发布内容修改是否需要再次提交审核")
    public boolean editPublishContentToSubmit = false;

    //用来判断栏目是否配置了工作流
    @Schema(description = "工作流流程模型的最新部署的流程定义")
    private String processDefinitionId;

    @Schema(description = "推送目标内容")
    private List<ContentPushToVo> pushTos = Collections.emptyList();

    @Schema(description = "url")
    public String url;

    @Schema(description = "实时预览URL")
    private String livePreviewUrl;


}
